<template>
	<view class="login">
		<view class="login-plate-1">
			<image src="../../static/logo.png" mode="widthFix"></image>
			<image src="../../static/img/login/login-top-img.png" mode="widthFix"></image>
			<text>共享经济下的玩具租赁新模式</text>
		</view>
		<view class="login-plate-2">
			<view class="item">
				<text>账号</text>
				<input type="text" v-model="account" placeholder="输入账号" placeholder-style="color:rgba(255,255,255,0.2)" />
			</view>
			<view class="item">
				<text>密码</text>
				<input type="password" v-model="password" placeholder="输入密码" placeholder-style="color:rgba(255,255,255,0.2)" />
			</view>
		</view>
		<view class="login-plate-3 daj-center">
			<button class="login-btn" hover-class="btn-bg-hover" @click="onLogin">登录</button>
			<navigator url="forgetPassword/forgetPassword" open-type="navigate" hover-class="none">
				<text>忘记密码了？</text>
			</navigator>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				account:'',
				password:''
			};
		},
		methods:{
			// 登录
			onLogin(){
				uni.switchTab({
					url:'../orderHome/orderHome'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
.login{
	width: 100vw;
	min-height: 100vh;
	background: #0d73ff;
	padding: 120rpx 80rpx;
	.login-plate-1{
		display: flex;
		flex-direction: column;
		image:first-child{
			width: 128rpx;
			margin-bottom: 64rpx;
		}
		image:last-child{
			width: 470rpx;
		}
		text{
			margin-top: 24rpx;
			font-size: 30rpx;
			color: #fefefe;
		}
	}
	.login-plate-2{
		margin-top: 140rpx;
		.item{
			display: flex;
			flex-direction: column;
			margin-bottom: 50rpx;
			text{
				font-size: 30rpx;
				color: #fefefe;
			}
			input{
				font-size: 42rpx;
				padding: 40upx 0;
				border-bottom: 1rpx solid #fff;
				color: #fff;
			}
		}
	}
	.login-plate-3{
		flex-direction: column;
		button{
			margin-bottom: 30rpx;
		}
		text{
			font-size: 30rpx;
			color: #fefefe;
		}
	}
}
</style>
